package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.AccountPositions;
import com.bgrconsulting.stockorderentry.service.model.AccountPosition;

@XmlRootElement(name = "accountPositions")
public class AccountPositionsConverter {
	
	private AccountPositions enity;
	
	public AccountPositionsConverter(AccountPositions accountPositions) {
		this.enity = accountPositions;
	}
	
	public AccountPositionsConverter() {
		this.enity = new AccountPositions();
	}
	
	@XmlElement(name = "accountPositions")
	public AccountPosition[] getAccountPositions() {
		return enity.getAccountPositions();
	}

}

